import Mock from 'mockjs' // 引入mockjs
const Random = Mock.Random // Mock.Random 是一个工具类，用于生成各种随机数据

export default [
    {
        path: '/accounts/get',
        method: 'post',
        handle({ body }) {
            return {
                code: 0,
                msg: '请求成功',
                data: data
            }
        }
    },
    {
        path: '/accounts/del',
        method: 'post',
        handle({ body }) {
            return {
                code: 0,
                msg: '请求成功',
                data: data
            }
        }
    }
]

const data = Mock.mock({
    'data|10': [
        {
            'id|+1': 1,
            account: '@string',
            createDate: '@date(yyyy-MM-dd)',
            status: '@natural(0, 1)'
        }
    ],
    total: 20
})
